<div class="row">
	<div class="col-lg-12">
		<h1 class="site-h1" style="background-color:#FFFFFF;">
			配置列表<#if configurationList??>（${configurationList.totalElements!''}）</#if>
		</h1>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12">
				<table class="layui-table" lay-skin="line" id="example-basic">
				  <thead>
					<tr>
					  <th>标题</th>
					  <th style="white-space:nowrap;" nowrap="nowrap">操作</th>
					</tr> 
				  </thead>
				  <tbody>
					<#if configurationList?? && configurationList??>
					<#list configurationList.content as configList>
					<tr>
					  <td class="add">${configList.title!''}</td>
					  
					  <#if configList.title == "链接设置">
			  			<td style="white-space:nowrap;" nowrap="nowrap">	
			  				<a href="/admin/configuration/addLink.html?id=${configList.id!''}" data-toggle="ajax" data-href-index="/admin/configuration/index" data-width="50%" data-height="75%" data-title="${configList.title!''}">
					  			<i class="layui-icon">&#xe61f;</i>
					  			添加
					  		</a>	
					  		<a href="/admin/configuration/editLink.html?id=${configList.id!''}" data-toggle="ajax" data-href-index="/admin/configuration/index" data-width="80%" data-height="95%" data-title="${configList.title!''}">
					  			<i class="layui-icon">&#xe642;</i>
					  			编辑
					  		</a>
					    </td>
					
					  <#elseif configList.title == "支付设置" >
					  	<td style="white-space:nowrap;" nowrap="nowrap">		
					  		<a href="/admin/alipayConfig/edit.html?id=${configList.id!''}" data-toggle="ajax" data-href-index="/admin/configuration/index" data-width="50%" data-height="75%" data-title="${configList.title!''}">
					  			<i class="layui-icon">&#xe642;</i>
					  			编辑
					  		</a>
					    </td> 
					  <#else>
				  		<td style="white-space:nowrap;" nowrap="nowrap">		
					  		<a href="/admin/configuration/edit.html?id=${configList.id!''}" data-toggle="ajax" data-href-index="/admin/configuration/index" data-width="50%" data-height="75%" data-title="${configList.title!''}">
					  			<i class="layui-icon">&#xe642;</i>
					  			编辑
					  		</a>
					    </td> 
					  </#if>
					</tr>
					</#list>
					</#if>
				  </tbody>
				</table>
			</div> 	   
		</div>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12" id="page" style="text-align:center;"></div>
		</div>
	</div>	
</div>
<script>
layui.use(['laypage', 'layer','form','laydate'], function(){
  var laypage = layui.laypage
  ,layer = layui.layer;
  laypage({
		cont: 'page'
		,pages: <#if configurationList??>${configurationList.totalPages}<#else>0</#if> //总页数
		,curr:<#if configurationList??>${configurationList.number+1}<#else>0</#if>
		,groups: 5 //连续显示分页数
		,jump:function(data , first){
			if(!first){
				location.href = "/admin/configList/list.html?p="+data.curr ;
			}
		}
   });
});
</script>